package com.gugu.procedure.dao;

import com.gugu.procedure.bean.OrderProductionRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface OrderProductionRecordDao extends JpaRepository <OrderProductionRecord, Long>, JpaSpecificationExecutor <OrderProductionRecord> {

    OrderProductionRecord findTopByOrderNoAndProductionAndStatus(String orderNo, String production, String status);


    List <OrderProductionRecord> findAllByOrderNoAndStatus(String orderNo, String status);

    void deleteAllByOrderNo(String orderNo);

}
